home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 376-400 / disk_378 / joylib / joystick.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  720b  |  42 lines

  1. /*
  2.     joystick.h
  3.  
  4.     ---------------------------------------------------
  5.     definitions for "joylink.lib" or "joystick.library"
  6.     ---------------------------------------------------
  7.  
  8.     written by Olli
  9.  
  10.     #define JOYLIB_SHARED to get definitions
  11.               for shared library
  12.  
  13. */
  14.  
  15. #define JOY_LEFT 1
  16. #define JOY_RIGHT 2
  17. #define JOY_UP 4
  18. #define JOY_DOWN 8
  19. #define JOY_FIRE 16
  20.  
  21. #define JOY_EAST 1
  22. #define JOY_WEST 2
  23. #define JOY_NORTH 4
  24. #define JOY_SOUTH 8
  25. #define JOY_BUTTON 16
  26.  
  27. short joy0(),joy1();
  28.  
  29. #ifdef JOYLIB_SHARED
  30. struct Library *JoystickBase;
  31. #endif
  32.  
  33. #ifdef LATTICE
  34. short joy0(void),joy1(void);
  35.  
  36. #ifdef JOYLIB_SHARED
  37. #pragma libcall JoystickBase joy0 1e 0
  38. #pragma libcall JoystickBase joy1 24 0
  39. #endif
  40.  
  41. #endif
  42.